﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;

namespace Simple.Services.System.FileInfo.Models
{
    public class FileResumableInputModel
    {
        /// <summary>
        /// 数据块总数
        /// </summary>
        public long? BlobCount { get; set; }
        /// <summary>
        /// 已经处理的数据块总数
        /// </summary>
        public long? Index { get; set; }
        /// <summary>
        /// 数据块的大小
        /// </summary>
        public long? BlobSize { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>
        public string? FileName { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public long? FileSize { get; set; }
        /// <summary>
        /// 文件类型
        /// </summary>
        public string? FileType { get; set; }
        /// <summary>
        /// 唯一键
        /// </summary>
        public string? Key { get; set; }
        /// <summary>
        /// 存储文件名
        /// </summary>
        public string? StoreName { get; set; }

        /// <summary>
        /// 文件存放文件夹ID
        /// </summary>
        public string? FolderId { get; set; }

        /// <summary>
        /// 文件存放路径
        /// </summary>
        public string? Path { get; set; }
    }


    public class FileInfoSliceUpdloadInput
    {
        public IFormFile? File { get; set; }

        public string? Path { get; set; } = "system";

        public string? Key { get; set; }

        public int? BlobIndex { get; set; }
    }

    public class FileSliceInfoGetOutputDto
    {
        public Guid? Id { get; set; }

        public string? FileName { get; set; }

        public string? DisplayName { get; set; }

        public string? FilePath { get; set; }

        public bool Result { get; set; }
    }
}
